/*
 * @Author: caihongtai caihongtai
 * @Date: 2025-02-09 17:14:04
 * @LastEditors: caihongtai caihongtai
 * @LastEditTime: 2025-03-06 21:53:51
 * @FilePath: /ai-interview-vue/src/api/resume.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

export const resumeApi = {
    // 获取简历列表
    getList(params = {}) {
        return request.post('/user/cv_list', params)
    },
    // 获取默认简历
    getDefaultResume() {
        return request.post('/user/cv_list', { default_status: 1 })
    },
    // 简历上传
    upload(data) {
        return request.post('/user/upload_cv', data)
    },
    // PC端简历上传
    uploadPc(data) {
        return request.post('/user/pc_upload_cv', data)
    },
    //生成PC端上传token
    getPcToken() {
        return request.get('/short_url')
    },
    // 简历编辑和新增
    editResume(data) {
        return request.post('/user/cv', data)
    }
} 